@using Omu.AwesomeDemo.WebUI.Controllers
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
    <script type="text/javascript">
        function sayHi() { alert('hi'); }
        function closeInfo() { $('#@Url.GetPopupId("info")').dialog('close'); }
    </script>

    @Html.MakePopup("Hey", width:300, height:200)        
    @(Html.MakePopup<PopupDemoController>(o => o.Info(), "info",
    new Dictionary<string, string>
                {
                    {"say hi","sayHi"}, 
                    {"say how are you", "function(){ alert('how are you'); }"},
                    {"Close it", "closeInfo"}
                }, position:"[30,130]"))

    @Html.MakePopup("Info", height:200, prefix:"abc", position:"top")
    @Html.MakePopup("Info", prefix:"mod", modal:true, position:"right")
    @Html.MakePopup("eya", "<br/><br/><br/>this content is defined in the view,<br/><br/><br/> also fullScreen, try resizing your browser", fullScreen: true)
    
    @Html.PopupActionLink("Hey", htmlAttributes:new{@class="abtn"})&nbsp;
    @(Html.PopupActionLink<PopupDemoController>(o => o.Info(), "info", new { @class = "abtn" }))&nbsp;
    @Html.PopupActionLink("info", prefix:"abc", htmlAttributes:new{@class = "abtn"})&nbsp;
    @Html.PopupActionLink("info", "modal info", prefix:"mod", htmlAttributes:new{@class = "abtn"})
    @Html.PopupActionLink("eya", htmlAttributes:new{@class="abtn"})

